export class ClassPagination {
    /**
     * 当前页码
     */
    page: number = 1;
    /**
     * 每页条数
     */
    limit: number = 10;
    /**
     * 数据总条数
     */
    total: number = 0;
}
//广告添加弹窗数据
export class ClassAdPopup {
    title: string = '';
    type: string|undefined|number= '';
    imgUrl: string = '';
    color:string = '';
    status:number = 1;
    unionType:string|number = '';
    unionValue:string|number = '';
    adId:string|number = ''
}

//团购更新弹窗数据
export class ClassToUpdateList {
    skuGroupShopPrice:number|string = 1;
    presentPrice:number|string= '';
    skuTypeName:number|string= '';
    index:number = 0
}
// 商品添加定义商品参数数据类型
export class ClassAttributeList { 
    attribute: string = '';
    value: string=''
 }

// 商品添加定义规格维度数据类型
export class ClassSpecificationList {
    title: string='';
    values: string[] = [];
    gmtCreate: number = 0;
    gmtUpdate: number = 0;
    inputSkuTagVisible: boolean = false;
    inputSkuTagValue: string = '';
}
//商品添加定义商品Sku详情数据类型
export class ClassSkuList {
    price: number = 0;
    vipPrice: number = 0;
    originalPrice: number = 0;
    stock: number = 0;
    barCode: string = '';
    weight: number = 0;
    img: string = '';
    title: string= '';
    specification: string= '';
}

//商品添加数据
export class ClassGoodsAddList {
    title:string = '';
    originalPrice:number|string= '';
    price:number|string= '';
    vipPrice:number|string= '';
    freightTemplateId:number|string= '';
    status:number = 1;
    imgList:string[] = [];
    img:string = '';
    unit:string = '';
    categoryId:string|number ='';
    description:string = '';
    detail:string = '';
    attributeList:ClassAttributeList[] = [];
    specificationList:ClassSpecificationList[] = [];
    skuList:ClassSkuList[] = []
}

/**
 * 标签
 */
export class ClassTag {
    name:string|undefined = '';
    fullPath:string= '';
    title:string|undefined = '';
    constructor(fullPath:string,title:string,name:string){
        this.fullPath = fullPath;
        this.title = title;
        this.name = name;
    }
}